import request from '@/sheep/request';

export default {
	// 预支付
	username: (data) =>
		request({
			url: 'api/user/authentication',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '2222',
				successMsg: false,
			},
		}),
	withdraw: {
		list: (params) =>
			request({
				url: 'withdraw',
				method: 'GET',
				params,
				custom: {
					auth: true,
				},
			}),
	},
};